package cn.itsource.hrm.exception;

import lombok.Data;

//全局异常
@Data
public class GlobalException extends RuntimeException {
    private ErrorEnum errorEnum;

    public GlobalException(String message){
        super(message);
    }

    public GlobalException(ErrorEnum code){
        super(code.getMsg());
        this.errorEnum = code;
    }
}